home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cchh01.arc
/
SCREEN.H
< prev
next >
Wrap
Text File
|
1986-03-14
|
2KB
|
40 lines
/*
* Utilizing the ANSI.SYS driver, this header file can be used to
* access certain screen functions.
*/
#define COLOR 0xb800
#define MONO 0xb000
#define ALLOFF 0
#define BOLD 1
#define UNDERSCORE 4
#define BLINK 5
#define REVERSE 7
#define INVISIBLE 8
#define BLACK 30
#define RED 31
#define GREEN 32
#define YELLOW 33
#define BLUE 34
#define MAGENTA 35
#define CYAN 36
#define WHITE 37
#define S40X25BW 0
#define S40X25CL 1
#define S80X25BW 2
#define S80X25CL 3
#define S320X200CL 4
#define S320X200BW 5
#define S640X200BW 6
#define locate(x,y) printf("\033[%d;%dH",x,y) /* position cursor */
#define sgr(x) printf("\033[%dm",x) /* set foreground/background color */
#define cls() printf("\033[2J") /* clear screen */
#define sm(x) printf("\033[=%dh",x) /* set mode */
#define scp() printf("\033[s") /* save cursor position */
#define rcp() printf("\033[u") /* restore cursor position */
#define cuu(x) printf("\033[%dA",x) /* move cursor up x rows */
#define cub(x) printf("\033[%dD",x) /* move cursor back x cols. */
#define cuf(x) printf("\033[%dC",x) /* move cursor forward x cols. */
#define bcolor(c) printf("\033[%dm", c+10) /* set backgound color */
#define fcolor(c) printf("\033[%dm", c) /* set foreground color */